package com.davinci.servicedesk;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;




public class Incidenten03 extends Activity {
	
	private static final String TAG_DID = "did";
	private static final String TAG_DVOORLETTER = "dvoorletter";
	private static final String TAG_DACHTERNAAM = "dachternaam";
	
	String did;
	String dvoorletter;
	String dachternaam;
	

	 public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        setContentView(R.layout.incidenten03);
	        
	        Intent i = getIntent();
			
			// getting product id (pid) from intent
			did = i.getStringExtra(TAG_DID);
			dvoorletter = i.getStringExtra(TAG_DVOORLETTER);
			dachternaam = i.getStringExtra(TAG_DACHTERNAAM);
			
			Bundle extras = getIntent().getExtras();
			if (extras != null) {
			    
			    TextView achternaam = (TextView)findViewById(R.id.achternaam);
			    achternaam.setText((CharSequence) dachternaam);
			    
			    TextView voorletter = (TextView)findViewById(R.id.voorletter);
			    voorletter.setText((CharSequence) dvoorletter);
			
			    TextView klantnummer = (TextView)findViewById(R.id.klantnummer);
			    klantnummer.setText((CharSequence) did);
	        
	        Button melden = (Button) findViewById(R.id.melden);
	        melden.setOnClickListener(new View.OnClickListener() {
	            public void onClick(View view) {
	                Intent myIntent = new Intent(view.getContext(), DashboardActivity.class);
	                startActivityForResult(myIntent, 0);
	            }
	        });
}
}
}